package com.javacoo.lock.client.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 接口加锁参数配置
 * <p>说明:参数为空时为方法级加锁,否则是参数级加锁</p>
 * @author duanyong
 * @date 2021/3/4 15:15
 */
@ConfigurationProperties(prefix = LockConfig.PREFIX)
public class LockConfig {
    /** 前缀 */
    public static final String PREFIX = "lock";
    /** lock是否可用,默认值*/
    public static final String ENABLED = "enabled";
    /** 默认实现:,默认值*/
    public static final String DEFAULT_IMPL= "default";
    /** lock是否可用*/
    private String enabled = ENABLED;
    /**实现*/
    private String impl = DEFAULT_IMPL;

    public String getEnabled() {
        return enabled;
    }

    public void setEnabled(String enabled) {
        this.enabled = enabled;
    }

    public String getImpl() {
        return impl;
    }

    public void setImpl(String impl) {
        this.impl = impl;
    }
}
